{% extends "polls/base.html" %}

{% load i18n %}

{% block title %}{% blocktrans %}{{ poll }}{% endblocktrans %}{% endblock %}

{% block content %}

{% include "polls/menu.html" %}
<h3>{{ poll }}</h3>
<h4>{% blocktrans %}About Poll:{% endblocktrans %}</h4>
<ul>
<li>{% blocktrans with poll.pub_date|date:"DATETIME_FORMAT" as date %}Publicated on {{ date }}{% endblocktrans %}
<li>{% blocktrans with poll.last_vote|date:"DATETIME_FORMAT" as date %}Last voted on {{ date }}{% endblocktrans %}
<li>{% blocktrans count poll.votes as v %}{{ v }} vote in total.{% plural %}{{ v }} votes in total{% endblocktrans %}
</ul>

<h4>{% blocktrans %}About Choices:{% endblocktrans %}</h4>
<ul>
{% for choice in poll.ordered_choices %}
<li>{{ choice.choice }}
<ul>
<li>
{% if choice.last_vote %}
{% blocktrans with choice.last_vote|date:"DATETIME_FORMAT" as date %}Last voted on {{ date }}{% endblocktrans %}
{% else %}
{% blocktrans %}Not voted yet{% endblocktrans %}
{% endif %}
<li>{% blocktrans count choice.votes as v %}{{ v }} vote in total{% plural %}{{ v }} votes in total{% endblocktrans %}
</ul>
{% endfor %}
</ul>

{% endblock %}